from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter
from .views import TranslateToHexViewSet

router = DefaultRouter()
router.register(r'history', TranslateToHexViewSet, basename='hex-history')

urlpatterns = [
    path('tohex', views.to_hex, name='to-hex'),
    path('translate', views.hex_translate, name='hex-translate'),
    path('blogpersion', TranslateToHexViewSet().blog_persion, name='blog-persion'),
    path('converter', TranslateToHexViewSet().hex_converter_page, name='hex-converter'),
] + router.urls